<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>查看通讯组页面</title>
    
<link rel="stylesheet" href="message/css/message_css.css" type="text/css"></link>
<script type="text/javascript">
	function submits(){
	var number=document.getElementById("pageSize").value;
  		if(number<=0){
  			document.getElementById("pageSize").value=5;
  			alert("当前显示页数不能为零");  			
  		}
  		document.forms.submit();
  	}
</script>
</head>
  
  <body>
     <form action="find" name="forms" id="forms" method="post">
   		<div id="message">
   			<table width="100%" cellpadding="0" cellspacing="0">
			<tr height="35" class="colors">
    			<td colspan="2" background="message/images/bg_03.gif">&nbsp; 
    			<img src="images/index_32.gif"></img>&nbsp;通讯组管理
    			</td>    			
    		</tr>
    		</table>
   			
   			<div id="message_main">
   				<table width="97%" cellpadding="0" cellspacing="0">
   					<tr>
   						<td colspan="4" class="td_01">
   								<input type="button" value=" 返回 " onclick="location.href='listAddress'" class="buttonface02"/>   							
   						</td>   						
   					</tr>   					
   					<tr>
	   					<td align="left" class="td_01" height="28">  			
			 			 	<br/>&nbsp;本页共显示<input type="text" name="pageSize" id="pageSize" size="1" value="${PageBean.pageSize}"/>&nbsp;<a href="javascript:submits()">GO>></a>条数据
	  					</td>
   						<td colspan="1" class="td_01" id="table_td"><br></td>
   						<td colspan="2" class="td_01" align="right">
							<br><img src="message/images/1.gif"></img>
   							<a href="find?pageIndex=1">首页</a>&nbsp;
   							<img src="message/images/2.gif"></img>
					    	<c:if test="${PageBean.currentPage<=1}">上一页</c:if>
					    	<c:if test="${PageBean.currentPage>1}"><a href="find?pageIndex=${PageBean.currentPage-1 }">上一页</a></c:if>&nbsp;					    	
					    	<c:if test="${PageBean.currentPage>=PageBean.totalRecords}">下一页</c:if>
					    	<c:if test="${PageBean.currentPage<PageBean.totalRecords}"><a href="find?pageIndex=${PageBean.currentPage+1 }">下一页</a></c:if>&nbsp;
					    	<img src="message/images/2-2.gif"></img>
					    	第${PageBean.currentPage}页&nbsp;					    	
					    	<a href="find?pageIndex=${PageBean.totalRecords }">末页</a>
					    	&nbsp;<img src="message/images/3.gif"></img>
					    	共${PageBean.totalRecords }页
   						</td>   							
   					</tr>
   					</table>
   					
   					<table width="97%" cellpadding="0" cellspacing="0">
   					
   					<tr height="28">
   						<td class="td_top">&nbsp;联系人姓名</td>
   						<td class="td_top">Email</td>
   						<td class="td_top">个人电话</td>   						
   					</tr>
   						<s:if test="list.size()==0">
			   					<tr height="25">
			   						<td class="td_01" colspan="3" align="center">该组没有联系人</td>   						
			   					</tr>
			   			</s:if>
			   			<s:else>
   						<s:iterator value="list" var="list">	   					
		   					<tr height="25">
		   						<td class="td_01"><s:property value="name"/></td>
		   						<td class="td_01"><s:property value="email"/></td>
		   						<td class="td_01"><s:property value="mobile"/></td>   						
		   					</tr>		   					
	   					</s:iterator>
	   					</s:else>	
   				</table>
   			</div>
   		</div>
   </form>
  </body>
</html>
